<?php

require_once(dirname(__FILE__) . '/../Query.php');

class Rats_FormatQuery extends RawsQuery
{
  public function __construct($type = null, $owner = null)
  {
      parent::__construct();
      $this->setType($type);
      $this->setOwner($owner);
  }

  public function setType($value)
  {
    if ($value !== null) {
        $this->_params['type'] = $value;
    } else {
        unset($this->_params['type']);
    }
    return $this;
  }

  public function setOwner($value)
  {
    if ($value !== null) {
        $this->_params['owner'] = $value;
    } else {
        unset($this->_params['owner']);
    }
    return $this;
  }
  
  public function getQueryUrl($base_uri)
  {
    return parent::getQueryUrl($base_uri, "format", null);
  }

}
